package com;

public class MessageGenerator 
{
	private String userName = "";
	
	public MessageGenerator(String user)
	{
		userName = user;
	}
	
	public String generateMessage (String msg)
	{
		return String.format("$1%s: $2%s", this.getUserName(), msg);
	}
	
	private String getUserName()
	{
		return userName;
	}

}
